package com.atmilan.quartz.service.impl;

import com.atmilan.quartz.mapper.GbProductMapper;
import com.atmilan.quartz.mapper.LeamProductMapper;
import com.atmilan.quartz.model.entity.gb.GbProduct;
import com.atmilan.quartz.model.entity.leam.LeamProduct;
import com.atmilan.quartz.service.IGbProductService;
import com.atmilan.quartz.service.ILeamProductService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class GbProductServiceImpl extends ServiceImpl<GbProductMapper, GbProduct> implements IGbProductService {

    @Autowired
    GbProductMapper gbProductMapper;

    @Override
    public void deleteAll() {
        gbProductMapper.deleteAll();
    }

    @Override
    public void copyAll() {
        gbProductMapper.deleteProductBack();
        gbProductMapper.copyProductBack();
    }

    @Override
    public int distinctCount() {
        return gbProductMapper.distinctCount();
    }

}
